<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Jedrzej\Pimpable\PimpableTrait;

class Express extends Model
{
    use HasFactory;
    use PimpableTrait;
    /**
     *可批量赋值的字段
     */
    public $fillable = [
      'code',
      'name',
      'account',
      'key',
      'net_name',
      'sort',
    ];
    /**
     * 默认倒序排序
     */
    protected $defaultSortCriteria = ['id,desc'];

    /**
     * 可搜索的字段
     */
    public $searchable = [
      'code',
      'name',
    ];
}
